#pragma warning(disable : 4996)
#include"list.h"
List* BuyNode()
{
	List* tail =(List*)malloc(sizeof(List));
		assert(tail != NULL);
		return tail;

}
void AddNode(List*head,int x)
{
	List* tail = head;
	while (tail->next != NULL)
	{

		tail = tail->next;
		
	}
	head->next = BuyNode();
	head->next->x = x;
	head->next->next = NULL;
}